<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img {

        }
    </style>
</head>
<body>
    <!-- 图片加载会影响 用户体验，使用 加载占位图 先占用图片位置，
    因为浏览器会缓存占位图，所以其它地方使用占位图时会直接从缓存中取 占位图； -->

    <img  src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2F458412ef0894476c376deb206e089b27160f46ba4452-nMT6Xd_fw658&refer=http%3A%2F%2Fhbimg.b0.upaiyun.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1633315734&t=5920234e8cd4c299436c724431d894e6" origin_src="https://img1.baidu.com/it/u=419664746,3627192979&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=626" alt="">

    <script>
        window.onload = function() {
            const oImg = document.querySelector('img');
            const origin_src = oImg.getAttribute('origin_src');
            const temImg = document.createElement('img');

            temImg.src = origin_src;
            oImg.appendChild(temImg);
        }
    </script>
</body>
</html>